package airplane.obj;

import airplane.utils.GameUtils;
import airplane.war.GameWin;

import java.awt.*;

public class ShellObj extends GameObj{

    public ShellObj(Image imag, int x, int y, int width, int height, int speed, GameWin gameWin) {
        super(imag, x, y, width, height, speed, gameWin);
    }

    @Override
    public void paintSelf(Graphics graphics) {
        super.paintSelf(graphics);
        y -= speed;
        if (y < -600) {
            GameUtils.shellObjList.remove(this);
        }
    }
}
